package com.jp.bytecode;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;

public class Mytest3 {
    public void test(){
        try{
            InputStream is = new FileInputStream("test.txt");
            ServerSocket serverSocket = new ServerSocket(9999);
            serverSocket.accept();
        }catch (FileNotFoundException e){

        }catch (IOException e){

        }catch (Exception e){

        }finally {
            System.out.println("finally");
        }
    }


    public void test1 () throws  IOException{
        try {
            InputStream is = new FileInputStream("test.txt");
            ServerSocket serverSocket = new ServerSocket(9999);
            serverSocket.accept();
        }finally {

        }
    }
}
